<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
</html>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>
<script>
    var data = {
        a:1, b:"sdfasdfasdf", list: [{name:"asdfas", age:30}]
    }
    $.ajax({
        url: "http://localhost:8080/index/postSome",
        type: "POST",
        datType: "JSON",
        contentType: "application/json",
        data: JSON.stringify(data),

        success: function (res) {
            console.log(res)
        }
    });
</script>